package com.zan.dao;

import com.zan.entity.ProductComments;
import com.zan.entity.ProductCommentsVo;
import com.zan.general.GeneralDao;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface ProductCommentsMapper extends GeneralDao<ProductComments> {

    /**
     * 根据商品ID分页查询评论信息
     * @param productId 商品ID
     * @param start 起始索引
     * @param limit 查询条数
     * @return
     */
    public List<ProductCommentsVo> selectCommentsByProductId(@Param("productId") String productId, @Param("start") int start, @Param("limit") int limit);

}